import Vue from 'vue'
import {message, loginPath} from './index'
import store from '../store/'

export default new Vue({
	methods: {
		messageFunction: function(msg) {
			eval(message);
		},
		toLogin: function(router) {
			store.commit('changeLandingHeadStatus', 'false');
      store.commit('changeLandingFootStatus', 'false');
      store.commit("changeHeadLight","personal");
      localStorage.clear();
			router.push(loginPath);
		}
	}
})
